/******************************************************************************
*
* This file is part of FreeTrack (http://code.google.com/p/qtfreetrack).
* BY Willy Gardiol (willy@gardiol.org)
*
* FreeTrack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FreeTrack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar.  If not, see <http://www.gnu.org/licenses/>
*
******************************************************************************/
#ifndef INCFREETRACK_H
#define INCFREETRACK_H

#include <QApplication>
#include <QAction>
#include <QBuffer>
#include <QtGui>
#include <QPainter>
#include <QEvent>
#include <QEventLoop>
#include <QHBoxLayout>
#include <QToolButton>
#include <QCloseEvent>
#include <QDebug>
#include <QMimeData>
#include <QByteArray>
#include <QDataStream>
#include <QFile>
#include <QFileDialog>
#include <QIODevice>
#include <QList>
#include <QDateTime>
#include <QPointF>
#include <QRectF>
#include <QColor>
#include <QLinkedList>
#include <QPixmap>
#include <QImage>
#include <QTransform>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QMap>
#include <QMenu>
#include <QRegExp>
#include <QScrollBar>

#ifdef BUILD_FOR_OVI
#include <QSystemScreenSaver>
#endif

#include <QTextStream>
#include <QToolButton>
#include <QVariant>
#include <QVBoxLayout>
#include <QWidgetAction>
#include <QXmlStreamWriter>
#include <QXmlStreamReader>

#define FTD qDebug() << __FILE__ << "::" << __FUNCTION__ << "-> "

// QtMobility API headers
// Location
#include <qgeopositioninfosource.h>
#include <qgeopositioninfo.h>
#include <qgeocoordinate.h>
QTM_USE_NAMESPACE

enum Orientation { vertical, horizontal, not_oriented, automaticOrientation };


// Since chaning the chunk_size will invalidate the entire map cache, we
// define this as a static value!
#define CHUNK_SIZE 640

#define ICON_SIZE QSize(48,48)
#define ICON_SIZE_BIG QSize(64,64)
#define ICON_SIZE_SMALL QSize(32,32)
#define ICON_SIZE_24 QSize(24,24)
#define ICON_SIZE_LARGE QSize( 96, 64 )

#define BUTTON_SIZE QSize(64,64)

#define REGEXP_NUMBER "([-+]?\\d*.?\\d*)"
#define REGEXP_DATE "(\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\dZ)"

#endif // INCFREETRACK_H
